<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
  <link rel="stylesheet" href="/assets/fonts/iconfont.css">
  <link rel="stylesheet" href="/assets/css/user/user.css">
</head>

<body>

  <div class="layui-card">
    <div class="layui-card-header">修改用户信息</div>
    <div class="layui-card-body">
      <form class="layui-form userInfo" lay-filter="formTest">
        <!-- 通过name将res中的内容填充到表单中对应name属性的input中，所以要存储id就可以加一个name为id的表单来存 -->
        <div class="layui-form-item" style='display: none;'>
          <label class="layui-form-label">id</label>
          <div class="layui-input-block">
            <input type="text" name="id" required lay-verify="required" placeholder="登录名称" autocomplete="off"
              class="layui-input" readonly>
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">登录名称</label>
          <div class="layui-input-block">
            <input type="text" name="username" required lay-verify="required" placeholder="登录名称" autocomplete="off"
              class="layui-input" readonly>
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">用户昵称</label>
          <div class="layui-input-block">
            <input type="text" name="nickname" id='nickname' required lay-verify="required" placeholder="用户昵称"
              autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">用户邮箱</label>
          <div class="layui-input-block">
            <input type="email" name="email" id='email' required lay-verify="required|email" placeholder="用户邮箱"
              autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <div class="layui-input-block">
            <button class="layui-btn submitBtn" lay-submit lay-filter="formDemo">提交修改</button>
            <button type="reset" class="layui-btn layui-btn-primary restBtn">重置</button>
          </div>
        </div>
      </form>
    </div>
  </div>


  <script src="/assets/lib/jquery.js"></script>
  <script src="/assets/lib/layui/layui.all.js"></script>
  <script src="/assets/js/home/ajaxBase.js"></script>
  <script src="/assets/js/user/user.js"></script>
</body>

</html>